import Layout from '@/layout'

const schoolRouter = {
  path: '/school',
  component: Layout,
  redirect: '/cms/school',
  name: 'school',
  meta: {
    title: '学校管理',
    icon: 'documentation'
  },
  hidden: true,
  children: [
    {
      path: 'list',
      component: () => import('@/views/cms/school/index'),
      name: 'school',
      meta: { title: '学校管理', icon: 'list' }
    },
    {
      path: 'edit',
      component: () => import('@/views/cms/school/edit'),
      name: 'schoolEdit',
      meta: { title: '学校编辑', noCache: true },
      hidden: true
    },
    {
      path: 'edit/:id',
      component: () => import('@/views/cms/school/edit'),
      name: 'schoolEdit',
      meta: { title: '学校编辑', noCache: true },
      hidden: true
    }
  ]
}

export default schoolRouter
